<?php get_instance()->view('common/header');?>
<div class="page-container home">
    <?php get_instance()->view('common/sidebar');?>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title"> <?php echo $title ?> </h3>
                    <ul class="page-breadcrumb breadcrumb">
                        <li class="btn-group"> <a class="btn default ml_5 return" href="<?php echo getUrl('home');?>"><i class="fa fa-chevron-left"></i> 返回</a> </li>
                        <li> <i class="fa fa-home"></i> <a href="<?php echo getUrl('home');?>"> 首页  <i class="fa fa-angle-right"></i> </a></li>
                        <li><a href="javascript:void(0);"><?php echo $title ?> </a></li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <!--开始-->
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN VALIDATION STATES-->
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <!-- BEGIN FORM-->
                            <form action="<?php echo getUrl('config/aboutUs/save')?>" class="form-horizontal" method="post" novalidate="novalidate">
                                <div class="form-body">
                                    <div class="form-group">
                                        <label class="control-label col-md-3"></label>
                                        <div class="col-md-6" >
                                            <script id="content" name="content" type="text/plain" ><?php echo  ! empty($aboutUs) ? $aboutUs : ''; ?></script>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-actions fluid hide" style="position:fixed;z-index:10000;bottom:0px">
                                    <div class="col-md-offset-3 col-md-8">
                                        <button class="btn green submit-btn" type="submit"><i class="fa fa-save"></i> 保存</button>
                                    </div>
                                </div>
                                <script type="text/javascript">
                                    $(function(){
                                        setTimeout("$('.form-actions').width($('.form-body').innerWidth()).removeClass('hide');", '500');
                                        window.onresize = function(){
                                            $('.form-actions').width($('.form-body').innerWidth());
                                        }
                                    });
                                </script>
                            </form>
                            <!-- END FORM-->
                        </div>
                    </div>
                    <!-- END VALIDATION STATES-->
                </div>
            </div>
            <!--结束-->
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $.e_validate.init('.form-horizontal',{});
        UE.getEditor('content',{initialFrameWidth:'800',initialFrameHeight:'500',autoHeightEnabled:false,serverUrl:'<?php echo getUrl('config/about/editor');?>'});
    });
</script>
</body>
</html>